package org.dzq.designmode.composite;

/**
 * @ClassName: Leaf
 * @Package: org.dzq.designmode.composite
 * @author: 越
 * @date: 2023/6/17 16:42
 * @Description: 叶子节点
 */
public class Leaf extends Component{

    public Leaf(String name) {
        super(name);
    }

    @Override
    public void printTree() {
        System.out.println(this.name);
    }
}
